Skip to content

Commit

Permalink
.coafile: Add section for XML files
Browse files Browse the repository at this point in the history
Added section for XML files, also
fixed issues raised by XMLBear.

Closes coala#39
  • Loading branch information
DivyeshPuri committed Nov 18, 2017
1 parent f991ca6 commit 7676c2f
Showing 7 changed files with 27 additions and 74 deletions.
4 changes: 4 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -5,3 +5,7 @@ ignore = com.coala.core/src/com/coala/core/utils/diff_match_patch.java
bears = CheckstyleBear
max_line_length = 90
use_spaces = True

[xml]
files = **/*.xml
bears = XMLBear
3 changes: 1 addition & 2 deletions com.coala.core.tests/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
72 changes: 17 additions & 55 deletions com.coala.core/plugin.xml
Original file line number Diff line number Diff line change
@@ -2,43 +2,22 @@
<?eclipse version="3.4"?>
<plugin>

<extension
point="org.eclipse.ui.commands">
<category
name="Main Category"
id="com.coala.core.commands.category">
<extension point="org.eclipse.ui.commands">
<category name="Main Category" id="com.coala.core.commands.category">
</category>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.runcoalaCommand"
name="Run coala Command">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.runcoalaCommand" name="Run coala Command">
</command>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.removeMarkersCommand"
name="Remove Markers Command">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.removeMarkersCommand" name="Remove Markers Command">
</command>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.bearList"
name="Bears">
<commandParameter
id="com.coala.core.commands.bearList.parameters"
name="Bear List"
optional="false"
values="com.coala.core.menu.BearMenu">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.bearList" name="Bears">
<commandParameter id="com.coala.core.commands.bearList.parameters" name="Bear List" optional="false" values="com.coala.core.menu.BearMenu">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="com.coala.core.commands.runcoalaCommand"
class="com.coala.core.handlers.RuncoafileHandler">
<extension point="org.eclipse.ui.handlers">
<handler commandId="com.coala.core.commands.runcoalaCommand" class="com.coala.core.handlers.RuncoafileHandler">
</handler>
<handler
commandId="com.coala.core.commands.removeMarkersCommand"
class="com.coala.core.handlers.RemoveMarkers">
<handler commandId="com.coala.core.commands.removeMarkersCommand" class="com.coala.core.handlers.RemoveMarkers">
</handler>
</extension>
<!--
@@ -52,31 +31,16 @@
</key>
</extension>
-->
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icons/coala-analyzer.gif"
id="com.coala.core.menus.popupMenu"
label="Run coala with"
mnemonic="o">
<dynamic
class="com.coala.core.menu.BearMenu"
id="com.coala.core.menu.bearListValues">
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu icon="icons/coala-analyzer.gif" id="com.coala.core.menus.popupMenu" label="Run coala with" mnemonic="o">
<dynamic class="com.coala.core.menu.BearMenu" id="com.coala.core.menu.bearListValues">
</dynamic>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="com.coala.core.toolbar">
<command
commandId="com.coala.core.commands.runcoalaCommand"
icon="icons/coala-analyzer.gif"
label="coala"
mode="FORCE_TEXT"
tooltip="Run coala on Project">
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="com.coala.core.toolbar">
<command commandId="com.coala.core.commands.runcoalaCommand" icon="icons/coala-analyzer.gif" label="coala" mode="FORCE_TEXT" tooltip="Run coala on Project">
</command>
</toolbar>
</menuContribution>
@@ -91,9 +55,7 @@
</extension>

<extension point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
markerType="com.coala.core.problem"
class="com.coala.core.quickfix.QuickFixer"/>
<markerResolutionGenerator markerType="com.coala.core.problem" class="com.coala.core.quickfix.QuickFixer"/>
</extension>


3 changes: 1 addition & 2 deletions com.coala.core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
13 changes: 2 additions & 11 deletions com.coala.feature/feature.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.coala.feature"
label="Feature"
version="1.0.0.qualifier"
provider-name="coala">
<feature id="com.coala.feature" label="Feature" version="1.0.0.qualifier" provider-name="coala">

<description url="http://coala-analyzer.org/">
The coala Eclipse plug-in provides static code analysis using coala.
@@ -14,11 +10,6 @@ Visit http://coala-analyzer.org/ for more information.
This program and the accompanying materials are made available under the terms of the AGPL License v3.
</license>

<plugin
id="com.coala.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin id="com.coala.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/>

</feature>
3 changes: 1 addition & 2 deletions com.coala.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
3 changes: 1 addition & 2 deletions com.coala.site/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>

0 comments on commit 7676c2f

Please sign in to comment.